package com.lx.idea.model;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

/**
 * @Author ybb
 * @Description
 * @Date 2021/9/2 17:03
 */
@Data
@TableName("analysis_tb")
public class AnalysisTb extends Model<AnalysisTb>{
    private Long id;
    @ApiModelProperty(value = "标识地址")
    private String analysisPath;
//    @ApiModelProperty(value = "标识前缀")
//    private String nodePrefix;
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd", locale = "GMT+8")
    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createDate;

    @ApiModelProperty(value = "模板ID")
    private Long templateId;
    @NotNull(message = "解析数据不能为空")
    @ApiModelProperty(value = "标识数据")
    private String data;
    @ApiModelProperty(value = "数据类型 (枚举值：1字符串、 2 整型、 3长整型 、4浮点型、5图片、6URL、7引用)")
    private int dataType;
    @ApiModelProperty(value = "数据属性 （0共有  1私有）")
    private int dataAttr;
}
